package com.vlaearn.spring.aop.throwsadvice;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class OurLogic {
	public static void main(String args[]) {

		ApplicationContext factory = new ClassPathXmlApplicationContext(
				"spring-aop-thorws-advice.xml");
		MyInterFace inter = (MyInterFace) factory.getBean("id3");
		inter.m1();

		// refer
		// http://www.java4s.com/spring/spring-aop-throws-advice-example-with-complete-explanation/
	}
}
